package com.github.pojo;

import com.github.util.AESEncrypt;
import lombok.Data;

@Data
public class Payload {
    private String payload;

    public Payload(){}

    public Payload(String payload) {
        this.payload = payload;
    }

    public static Payload setPayload(String payload) {
        return new Payload(AESEncrypt.encrypt(payload));
    }
}
